package com.share.user.admin.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL) // 仅序列化非 null 字段
public class Meta {
    private String icon;
    private String title;
    private Integer rank;
    private Integer keepAlive;
    @JsonProperty("frameSrc")
    private String frameSrc;

    // 构造器
    public Meta(String icon, String title, Integer rank) {
        this.icon = icon;
        this.title = title;
        this.rank = rank;
    }

    public Meta(String title, String frameSrc) {
        this.title = title;
        this.frameSrc = frameSrc;
    }
}
